Finding the equation of a straight line